package cn.wit.summit.chwan.models.request;

/**
 * Created by Alan on 2018/5/2.
 */

public class CreateCommentRequest {
    private String token;
    private String version;
    private String device_id;
    private String mac;
    private String ip_address;
    private String channel_num;
    private String mobile_phone_model;
    private String sort = "desc";
    private String game_id;
    private String uid;
    private String user_token;
    private String score;
    private String head_portrait;//头像地址
    private String user_name;
    private String random_num;
    private String content; //点评内容
    private String reply_comment_id; //回复的点评id(新建点评时为0,回复时带上被回复人的点评id)
    private String reply_comment_user_name; //回复点评的用户名(新建点评时为空,回复时带上被回复人的昵称)
    private String reply_comment_user_id; //复点评的用户id(新建点评时为0,回复时带上被回复人的id)
    private int position;  // 位置(1创建点评 2 详情跟楼回复，回复跟楼)
    private String details_comment_id; //详情列表时的主点评id(只有在点评详情的时候带上值，默认为0)
    private int pn;  //当前页数
    private String m_p_m_status; // 手机型号显示状态(1显示 0不显示 3不操作)

    public CreateCommentRequest(GetCommentTokenRequest te
            , String game_id, String uid, String user_token, String head_portrait
            , String user_name, String random_num, String content, String reply_comment_id
            , String reply_comment_user_name, String reply_comment_user_id, int position
            , String details_comment_id, int pn, String m_p_m_status) {
        this.token = te.getToken();
        this.version = te.getVersion();
        this.device_id = te.getDevice_id();
        this.mac = te.getMac();
        this.ip_address = te.getIp_address();
        this.channel_num = te.getChannel_num();
        this.mobile_phone_model = te.getMobile_phone_model();
        this.game_id = game_id;
        this.uid = uid;
        this.user_token = user_token;
        this.score = "0";
        this.head_portrait = head_portrait;
        this.user_name = user_name;
        this.random_num = random_num;
        this.content = content;
        this.reply_comment_id = reply_comment_id;
        this.reply_comment_user_name = reply_comment_user_name;
        this.reply_comment_user_id = reply_comment_user_id;
        this.position = position;
        this.details_comment_id = details_comment_id;
        this.pn = pn;
        this.m_p_m_status = m_p_m_status;
    }
}
